package edu.sctu.practice.class01.zhangwang.assigns.assign03.question_02;

/**
 * Created by Z_W on 2015/10/22.
 */
public class Max {

    public static Comparable max(Comparable o1, Comparable o2) {
        if (o1.compareTo(null) > o2.compareTo(null)) {

            System.out.println("前一个面积大于后一个。");
            return o1;
        } else {
            System.out.println("前一个面积小于后一个。");
            return o2;
        }
    }
}
